<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
<head></head>
<body>


	<!-- Menu -->
	<%@ include file="/WEB-INF/views/demo/common.jsp" %>




	<h2>스터디 멤버 리스트</h2>


	<table data-role="table" id="movie-table" data-mode="reflow" class="ui-responsive table-stroke">
	  <thead>
	    <tr>
	    	<th data-priority="1">No</th>	
	      	<th data-priority="2">이름</th>
	      	<th data-priority="persist">성별</th>
	    </tr>
	  </thead>
	  <tbody>

	 	<c:if test="${!empty memList}">
	 	<c:set var="tableNum">0</c:set>
		<c:forEach var="log" items="${memList}">
		    <c:set var="tableNum">${tableNum+1}</c:set>
		    <tr>
		    	<th>${tableNum}</th>
		      	<td>${log.name}</td>
		      	<td>${log.sex}</td>
		    </tr>
		</c:forEach>
		</c:if>

	  </tbody>
	</table>
	
	
	
</body>
</html>
